package com.steak.mvc.handlerInterceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 刘牌
 * @Title:
 * @date 2022-04-0422:53
 */
@Configuration
public class RegistryHandlerInterceptor implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LiuHandlerInterceptor()).addPathPatterns("/**");
    }
}
